import Request from '@/utils/request.js'

// 获取字典表数据列表接口
export function getDictListApi(type) {
  return Request.get(`/admin-api/system/dict-data/type/${type}`)
}

// 获取特殊作业列表接口
export function getSpecialWorkListApi(params) {
  return Request.post('/admin-api/biz/licence/list', params)
}

// 获取安全措施数据列表接口
export function getSafeInfoListApi(params) {
  return Request.get('/admin-api/biz/licence-safe-measures-setting/list', params)
}

// 获取部门列表接口
export function getDepartmentListApi(params) {
  return Request.get('/admin-api/system/dept/list-all-simple-byParentId', params)
}

// 获取部门下用户列表接口
export function getUserListByDepartmentApi(params) {
  return Request.get('/admin-api/system/user/list-all-simpleByDeptId', params)
}

// 获取部门列表接口
export function getDepartmentNewListApi(params) {
  return Request.get('/admin-api/system/dept/list-all-simple-byId', params)
}